<template>
  <div class="app-main-content-box">
    <AppMainTitle title="会员运营" />
    <el-row :gutter="30">
      <el-col v-if="!$store.getters.banBtnList.includes('CARD_BRANCH_PROMOTE')" :xs="12" :sm="12" :md="8" :lg="8" :xl="6">
        <el-card class="box-card textC" shadow="hover">
          <div class="title">
            <strong>门店二维码推广</strong>
          </div>
          <div class="tips">会员注册二维码，可导出放到线下物料中供顾客扫码注册</div>
          <div class="img-container">
            <img src="../../../assets/icon/i-operate-down.png" alt>
          </div>
          <router-link to="/vip/promote-qr">
            <el-button type="primary" size="medium" round>管 理</el-button>
          </router-link>
        </el-card>
      </el-col>
      <el-col v-if="!$store.getters.banBtnList.includes('CARD_PROMOTER')" :xs="12" :sm="12" :md="8" :lg="8" :xl="6">
        <el-card class="box-card textC" shadow="hover">
          <div class="title">
            <strong>推广员拉新</strong>
          </div>
          <div class="tips">通过员工或者顾客去给门店拉新会员注册</div>
          <div class="img-container">
            <img src="../../../assets/icon/i-operate-promote.png" alt>
          </div>
          <router-link to="/vip/promoters">
            <el-button type="primary" size="medium" round>管 理</el-button>
          </router-link>
        </el-card>
      </el-col>
      <el-col v-if="!$store.getters.banBtnList.includes('CARD_MEMBER_GIVEN')||!$store.getters.banBtnList.includes('TAB_MEMBER_GIVEN_CONFIG')" :xs="12" :sm="12" :md="8" :lg="8" :xl="6">
        <el-card class="box-card textC" shadow="hover">
          <div class="title">
            <strong>赠送会员</strong>
          </div>
          <div class="tips">员工或者顾客赠送给其他顾客会员卡</div>
          <div class="img-container">
            <img src="../../../assets/icon/i-operate-gift.png" alt>
          </div>
          <router-link to="/vip/card-give">
            <el-button type="primary" size="medium" round>管 理</el-button>
          </router-link>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {}
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
  .box-card {
    margin-bottom: 30px;
    .title {
      height: 60px;
      font-size: 20px;
      line-height: 60px;
      text-overflow: -o-ellipsis-lastline;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      line-clamp: 1;
      -webkit-box-orient: vertical;
    }
    .tips {
      height: 32px;
      font-size: 14px;
      text-overflow: -o-ellipsis-lastline;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .img-container {
      display: block;
      position: relative;
      margin: 20px 0;
      padding-bottom: 66.66%;
      img {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 66.66%;
        height: 100%;
        border-radius: 50%;
      }
    }
    .el-button {
      width: 80%;
    }
  }
</style>
